package com.huage_04.lesson01;

public class Son extends Father{
    public String name;
    public int age = 20;

    public Son(){
       // super(30);
        int age = 30;
        System.out.println("调用了Son类无参构造方法");
        System.out.println("age = " + age);
    }
    public Son(int age){

       // super();
        this.age = age;
        System.out.println("调用了Son类有参构造方法");
    }
}
